package com.das.mechanic_alone.mvp.view.alone.fragment;

import android.os.Bundle;
import android.util.Log;
import android.view.View;
import android.widget.TextView;

import com.das.mechanic_alone.R;
import com.das.mechanic_base.base.X3BaseFragment;
import com.das.mechanic_base.base.X3BasePresenter;
import com.das.mechanic_base.utils.X3StringUtils;

import java.util.ArrayList;

public class X3AloneHotCommentFragment extends X3BaseFragment {

    ArrayList<String> datas;

    TextView tv_one,tv_two;

    public static X3AloneHotCommentFragment getInstance(Bundle args){
        X3AloneHotCommentFragment fragment = new X3AloneHotCommentFragment();
        fragment.setArguments(args);
        return fragment;
    }

    @Override
    protected int getLayoutId() {
        return R.layout.x3_alone_hot_comment_fragment;
    }

    @Override
    protected void initView(View view) {

        datas = getArguments().getStringArrayList("datas");
        tv_one = view.findViewById(R.id.tv_one);
        tv_two = view.findViewById(R.id.tv_two);

        if (!X3StringUtils.isListEmpty(datas)){
//            tv_one.setText(datas.get(0));
            Log.e("alone___","datas.get(0) = " + datas.get(0));

//            if(datas.size()>1){
//                tv_two.setText(datas.get(1));
//            }else{
//                tv_two.setVisibility(View.GONE);
//            }
        }
    }

    @Override
    protected X3BasePresenter createPresenter() {
        return null;
    }
}
